<!DOCTYPE html>
<html>
	<head>
		<meta name="viewport" content="width=device-width,initial-scale=1.0" />
		<meta charset="utf-8" />
		<link href="__PUBLIC__/Common/html/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />

		<script src="__PUBLIC__/Home/js/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/bootstrap.css"/>
		<title>{:$searchName}</title>
	</head>
	<body>
		
		<div data-role="page">
		  <div class="page">
			<div class="top">
				<a href="/"><img src="__PUBLIC__/Home/img/home.png"/></a>
				<span>/</span>
				<a href="/" class="sport">{:$searchName}</a>
			</div>

					  <input class="btn search" name="tel" type="search" ><button class="btn search" id="search" > 查询</button>


			  <include file="Common/main" />
		    </div>
			<table class="table">
				<caption>{:$searchData}</caption>
				<thead>
				<tr>
					<th>姓名</th>
					<th>预约时间</th>
				</tr>
				</thead>
				<tbody>
				<foreach name="data" item="vo">
					<tr>
						<td>{:$vo['yueyu_name']}</td>
						<td>{:$vo['yueyu_time']}</td>
					</tr>
				</foreach>

				</tbody>
			</table>
		</div>


	</body>
	<script>
        $(document).ready(function() {
            window.method=GetQueryString('method');
            console.log(method);
        });

		$("#search").click(function () {
		    var data=$("input[name='tel']").val();

			window.location.href="{:U('Search/search')}?tel="+data+'&method='+method;
        });
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null){
                return  r[2];
			} else return null;
        }
	</script>
</html>
